﻿using System;
using System.Data;
using DAL;

namespace BLL
{
    // Token: 0x02000008 RID: 8
    public class ProblemInfoBLL
    {
        // Token: 0x06000056 RID: 86 RVA: 0x00002D7C File Offset: 0x00000F7C
        public static string saveProblemInfo(string CustomerName, string FromUserNo, string ToUserNo, string ProblemIssue, string ProblemImage, string VideoPath)
        {
            return ProblemInfoDAL.saveProblemInfo(CustomerName, FromUserNo, ToUserNo, ProblemIssue, ProblemImage, VideoPath);
        }

        // Token: 0x06000057 RID: 87 RVA: 0x00002DA0 File Offset: 0x00000FA0
        public static string saveMessageRepate(string MessageID, string MessageWordsRepate, string FromUserNo, string ToUserNo, string ProblemImage, string VideoPath)
        {
            return ProblemInfoDAL.saveMessageRepate(MessageID, MessageWordsRepate, FromUserNo, ToUserNo, ProblemImage, VideoPath);
        }

        // Token: 0x06000058 RID: 88 RVA: 0x00002DC4 File Offset: 0x00000FC4
        public static DataTable GetProblemInfo(string sidx, string sord, string ToUserNo, string keyvalue)
        {
            DataTable dataTable = new DataTable();
            return ProblemInfoDAL.GetProblemInfo(sidx, sord, ToUserNo, keyvalue);
        }

        public static DataTable GetProblemInfoSend(string sidx, string sord, string ToUserNo, string keyvalue)
        {
            DataTable dataTable = new DataTable();
            return ProblemInfoDAL.GetProblemInfoSend(sidx, sord, ToUserNo, keyvalue);
        }

        // Token: 0x06000059 RID: 89 RVA: 0x00002DE8 File Offset: 0x00000FE8
        public static string getVideoByProblemID(string ProblemID)
        {
            return ProblemInfoDAL.getVideoByProblemID(ProblemID);
        }

        // Token: 0x0600005A RID: 90 RVA: 0x00002E04 File Offset: 0x00001004
        public static string getImgByProblemID(string ProblemID)
        {
            return ProblemInfoDAL.getImgByProblemID(ProblemID);
        }

        // Token: 0x0600005B RID: 91 RVA: 0x00002E20 File Offset: 0x00001020
        public static string getMessageInfoByID(string MessageID)
        {
            return ProblemInfoDAL.getMessageInfoByID(MessageID);
        }

        // Token: 0x0600005C RID: 92 RVA: 0x00002E3C File Offset: 0x0000103C
        public static string deleteProblemInfo(string ProblemID)
        {
            int num = ProblemInfoDAL.deleteProblemInfo(ProblemID);
            string result = string.Empty;
            if (num > 0)
            {
                result = "success";
            }
            else
            {
                result = "flaut";
            }
            return result;
        }
    }
}
